package com.summer.mall.service;

import java.util.List;

import com.summer.mall.common.ResponseService;
import com.summer.mall.entity.Cart;
import com.summer.mall.vo.CartVo;

public interface CartService{

    ResponseService<CartVo> add(Integer userId, Integer productId, Integer count);
    ResponseService<CartVo> update(Integer userId,Integer productId,Integer count);
    ResponseService<CartVo> deleteProduct(Integer userId, Integer productIds);

    ResponseService<CartVo> list (Integer userId);
    ResponseService<CartVo> selectOrUnSelect (Integer userId,Integer productId,Integer checked);
    ResponseService<Integer> getCartProductCount(Integer userId);


}
